Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new functionality to display detailed information about packets in the right sidebar. The changes include adding a toggle button to show/hide packet details, creating a new function to generate the toggle information, and updating the styles to support the new feature.
Key changes:
Functionality enhancements:
src/graphics/right_bar.ts
: AddedaddToggleButton
method toRightBar
class to append a toggle button for displaying packet details.src/graphics/right_bar.ts
: AddedcreateToggleInfo
function to create a container with a toggle button and detailed information list.src/types/packet.ts
: AddedgetPacketDetails
method toPacket
class to generate a dictionary of packet details.src/types/packet.ts
: UpdatedshowInfo
method inPacket
class to include the toggle button for packet details.Styling updates:
src/styles/index.ts
: Imported new stylesheetinfo.css
for the toggle info container.src/styles/info.css
: Added styles for the toggle info container and its elements, including transitions for a smoother user experience.